home *** CD-ROM | disk | FTP | other *** search
/ Aminet 37 / Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso / Aminet / comm / bbs / cit_src_AD08.lha / ansisys.h < prev    next >
C/C++ Source or Header  |  1998-06-12  |  13KB  |  624 lines

  1. /*
  2. * AnsiSys.H
  3. *
  4. * This file contains the prototypes for the interface to the system
  5. * dependencies.  If you need prototypes for some internal system
  6. * dependent code, use SysDep.H.  This file is no longer the domain of
  7. * the system dependent porter.  May 12, 1990.
  8. */
  9. /*
  10. * Use these only if we are ANSI capable...
  11. */
  12. #define ANSI_PROTOTYPING
  13. #ifdef ANSI_PROTOTYPING
  14. /*
  15. * These functions are the interface calls to the system dependencies.
  16. * Since some of these functions can be implemented as parameterized
  17. * defines, you must go through these and comment out those that should
  18. * not be here.
  19. */
  20. char Pause_Message_Check(void);
  21. void NormalizeDate(char *udate );
  22. char *DisplayDate(char *normal_date);
  23. /*
  24. * 3.1. Modem stuff
  25. */
  26. #ifndef ModemOpen
  27. void ModemOpen(char FromDoor);
  28. #endif
  29. #ifndef inp
  30. AN_UNSIGNED inp(void);
  31. #endif
  32. #ifndef MIReady
  33. int MIReady(void);
  34. #endif
  35. #ifndef ModemShutdown
  36. void ModemShutdown(char KillCarr);
  37. #endif
  38. #ifndef outMod
  39. char outMod(int c);
  40. #endif
  41. #ifndef fastMod
  42. char fastMod(int c);
  43. #endif
  44. #ifndef ModemPushBack
  45. void ModemPushBack(int c);
  46. #endif
  47. #ifndef  gotCarrier
  48.  int gotCarrier(void);
  49. #endif
  50. #ifndef changeBauds
  51. int changeBauds(MenuId id);
  52. #endif
  53. #ifndef DisableModem
  54. void DisableModem(char FromNet);
  55. #endif
  56. #ifndef EnableModem
  57. void EnableModem(char FromNet);
  58. #endif
  59. #ifndef ReInitModem
  60. void ReInitModem(void);
  61. #endif
  62. #ifndef getNetBaud
  63. char getNetBaud(void);
  64. #endif
  65. #ifndef ResultVal
  66. int  ResultVal(char *buf);
  67. #endif
  68. #ifndef setNetCallBaud
  69. int setNetCallBaud(int targetBaudCode);
  70. #endif
  71. #ifndef HangUp
  72. void HangUp(char FromNet);
  73. #endif
  74. #ifndef BufferingOn
  75. void BufferingOn(void);
  76. #endif
  77. #ifndef BufferingOff
  78. void BufferingOff(void);
  79. #endif
  80. #ifndef Reinitialize
  81. void Reinitialize(void);
  82. #endif
  83. /*
  84. * 3.2. Disk Stuff
  85. */
  86. #ifndef mvToHomeDisk
  87. int mvToHomeDisk(int x);
  88. #endif
  89. #ifndef RoomLeft
  90. long RoomLeft(aRoom *room);
  91. #endif
  92. #ifndef RottenDial
  93. int RottenDial(char *callout_string);
  94. #endif
  95. /*
  96. * 3.3. Console Stuff
  97. */
  98. #ifndef getCh
  99. int getCh(void);
  100. #endif
  101. #ifndef KBReady
  102. char KBReady(void);
  103. #endif
  104. #ifndef mputChar
  105. void mputChar(char c);
  106. #endif
  107. #ifndef simpleGetch
  108. int simpleGetch(void);
  109. #endif
  110. #ifndef ScreenUser
  111. void ScreenUser(void);
  112. #endif
  113. #ifndef ScrNewUser
  114. void ScrNewUser(void);
  115. #endif
  116. #ifndef ScrTimeUpdate
  117. void ScrTimeUpdate(int hr, int mn);
  118. #endif
  119. #ifndef SpecialMessage
  120. void SpecialMessage(char *message);
  121. #endif
  122. #ifndef StopVideo
  123. void StopVideo(void);
  124. #endif
  125. /*
  126. * 3.4. Area Stuff
  127. */
  128. #ifndef CitGetFileList
  129. void CitGetFileList(char *mask, SListBase *base, long before,
  130. long after, char *phrase);
  131. #endif
  132. #ifndef FindDirName
  133. char *FindDirName(int roomno);
  134. #endif
  135. #ifndef getArea
  136. char getArea(aRoom *roomData);
  137. #endif
  138. #ifndef homeSpace
  139. void homeSpace(void);
  140. #endif
  141. #ifndef netGetArea
  142. int netGetArea(char *fn, struct fl_req *file_data, char ambiguous);
  143. #endif
  144. #ifndef netGetAreaV2
  145. int netGetAreaV2(MenuId id, char *fn, struct fl_req *file_data, char ambiguous);
  146. #endif
  147. #ifndef netSetNewArea
  148. char netSetNewArea(NET_AREA *file_data);
  149. #endif
  150. #ifndef printArea
  151. int printArea(ROOM_AREA *x);
  152. #endif
  153. #ifndef prtNetArea
  154. char *prtNetArea(NET_AREA *netArea);
  155. #endif
  156. #ifndef RoomSys
  157. int RoomSys(int roomNo);
  158. #endif
  159. #ifndef setSpace
  160. char setSpace(aRoom *roomData);
  161. #endif
  162. #ifdef OLD_STYLE
  163. #ifndef sysGetSendFiles
  164. char sysGetSendFiles(char *Files, struct fl_send *sendWhat);
  165. #endif
  166. #else
  167. #ifndef sysGetSendFilesV2
  168. char sysGetSendFilesV2(MenuId id, char *name, struct fl_send *sendWhat);
  169. #endif
  170. #endif
  171. #ifndef sysRoomLeft
  172. long sysRoomLeft(void);
  173. #endif
  174. #ifndef sysSendFiles
  175. void sysSendFiles(struct fl_send *sendWhat);
  176. #endif
  177. #ifndef updFiletag
  178. void updFiletag(char *fileName, char *desc);
  179. #endif
  180. #ifndef makeAuditName
  181. void makeAuditName(char *logfn, char *name);
  182. #endif
  183. #ifndef ValidDirFileName
  184. char ValidDirFileName(char *fn);
  185. #endif
  186. #ifndef NormalName
  187. void NormalName(struct fl_send *x, char *y);
  188. #endif
  189. #ifndef RedirectName
  190. void RedirectName(char *buffer, char *directory, char *filename);
  191. #endif
  192. #ifndef MakeDomainDirectory
  193. void MakeDomainDirectory(int dir);
  194. #endif
  195. #ifndef KillDomainDirectory
  196. void KillDomainDirectory(int dir);
  197. #endif
  198. #ifndef MakeDomainFileName
  199. void MakeDomainFileName(char *buffer, int Dir, char *filename);
  200. #endif
  201. #ifndef MoveFile
  202. void MoveFile(char *oldname, char *newname);
  203. #endif
  204. #ifndef CopyFile
  205. char CopyFile(char *oldname, aRoom *roomData);
  206. #endif
  207. #ifndef CopyFileToFile
  208. void CopyFileToFile(char *fn, char *vfn);
  209. #endif
  210. #ifndef VirtualCopyFileToFile
  211. void VirtualCopyFileToFile(char *src, char *target);
  212. #endif
  213. #ifndef ChangeToCacheDir
  214. int ChangeToCacheDir(char *x);
  215. #endif
  216. #ifndef ToTempArea
  217. void ToTempArea(void);
  218. #endif
  219. #ifndef KillTempArea
  220. void KillTempArea(void);
  221. #endif
  222. /*
  223. * 3.5. Baud handling
  224. */
  225. #ifndef Find_baud
  226. char Find_baud(char **whatRate);
  227. #endif
  228.  
  229. #ifndef Set_Timer
  230. unsigned long Set_Timer(unsigned long oldtime);
  231. #endif
  232. #ifndef Compute_Data
  233. void Compute_Data(char *name);
  234. #endif
  235.  
  236. /*
  237. * 3.6. File Stuff
  238. */
  239. #ifndef dirString
  240. void dirString(char *target, ROOM_AREA *area);
  241. #endif
  242. #ifndef makeHelpFileName
  243. void makeHelpFileName(char *new, char *original);
  244. #endif
  245. #ifndef makeSysName
  246. void makeSysName(SYS_FILE target, char *name, SYS_AREA *area);
  247. #endif
  248. #ifndef InitBio
  249. void InitBio(void);
  250. #endif
  251. #ifndef MakeBioName
  252. void MakeBioName(SYS_FILE target, char *name);
  253. #endif
  254. #ifndef MoveToBioDirectory
  255. void MoveToBioDirectory(void);
  256. #endif
  257. #ifndef safeopen
  258. FILE *safeopen(char *fn, char *mode);
  259. #endif
  260. #ifndef totalBytes
  261. void totalBytes(long *size, FILE *fd);
  262. #endif
  263. /*
  264. * 3.7. System Formatting Functions
  265. */
  266. #ifndef mPrintf
  267. int  mPrintf(char *format, ...);
  268. #endif
  269. #ifndef dPrintf
  270. void dPrintf(char *format, ...);
  271. #endif
  272. #ifndef splitF
  273. void splitF(FILE *diskFile, char *format, ...);
  274. #endif
  275. #ifndef mTrPrintf
  276. void mTrPrintf(char *format, ...);
  277. #endif
  278. #ifndef ToFile
  279. void ToFile(char *format, ...);
  280. #endif
  281. /*
  282. * 3.8. Timers
  283. */
  284. #ifndef MilliSecPause
  285. void MilliSecPause(int x);
  286. #endif
  287. #ifndef pause
  288. void pause(int i);
  289. #endif
  290. #ifndef startTimer
  291. void startTimer(int TimerId);
  292. #endif
  293. #ifndef getRawDate
  294. void getRawDate(int *year, int *month, int *day, int *hours, int *minutes,
  295. int *seconds, int *milli);
  296. #endif
  297. #ifndef setRawDate
  298. char setRawDate(int year, int month, int day, int hour, int min);
  299. #endif
  300. #ifndef AbsToReadable
  301. char *AbsToReadable(unsigned long lastdate);
  302. #endif
  303. #ifndef ReadDate
  304. int  ReadDate(char *date, long *RetTime);
  305. #endif
  306. #ifndef CurAbsolute
  307. long CurAbsolute(void);
  308. #endif
  309. #ifndef chkTimeSince
  310. long chkTimeSince(int TimerId);
  311. #endif
  312. /*
  313. * 3.9. Miscellaneous
  314. */
  315. #ifndef copy_struct
  316. void copy_struct(char *src, char *dest);
  317. #endif
  318. #ifndef copy_array
  319. void copy_array(char *src, char *dest);
  320. #endif
  321. #ifndef copy_ptr
  322. void copy_ptr(char *src, char *dest, int s);
  323. #endif
  324. #ifndef CheckSystem
  325. char CheckSystem(void);
  326. #endif
  327. #ifndef giveSpaceLeft
  328. void giveSpaceLeft(aRoom *roomData);
  329. #endif
  330. #ifndef systemCommands
  331. void systemCommands(void);
  332. #endif
  333. #ifndef systemShutdown
  334. void systemShutdown(int SysErrorVal);
  335. #endif
  336. #ifndef OutsideEditor
  337. void OutsideEditor(void);
  338. #endif
  339. #ifndef OtherEditOptions
  340. void OtherEditOptions(char **Options);
  341. #endif
  342. #ifndef ShowOutsideEditors
  343. void ShowOutsideEditors(void);
  344. #endif
  345. #ifndef RunRemoteEditor
  346. void RunRemoteEditor(int s);
  347. #endif
  348. #ifndef receive
  349. int receive(int seconds);
  350. #endif
  351. #ifndef WhatDay
  352. int WhatDay(void);
  353. #endif
  354. #ifndef systemInit
  355. int systemInit(void);
  356. #endif
  357. #ifndef ResIntrp
  358. void *ResIntrp(char *line);
  359. #endif
  360. #ifndef zero_struct
  361. void zero_struct(void *target);
  362. #endif
  363. #ifndef zero_array
  364. void zero_array(char *target);
  365. #endif
  366. #ifndef ClearDoorTimers
  367. void ClearDoorTimers(void);
  368. #endif
  369. #ifndef Cumulate
  370. void Cumulate();
  371. #endif
  372. #ifndef BackFromDoor
  373. char BackFromDoor(void);
  374. #endif
  375. #ifndef doDoor
  376. char doDoor(char moreYet);
  377. #endif
  378. #ifndef DoorHelpListing
  379. void DoorHelpListing(char *target);
  380. #endif
  381. #ifndef NewUserDoor
  382. char NewUserDoor(void);
  383. #endif
  384. #ifndef RunAutoDoor
  385. char RunAutoDoor(int i, char ask);
  386. #endif
  387. #ifndef ReadBps
  388. void ReadBps(char *str);
  389. #endif
  390. #ifndef  SetUpPort
  391. int  SetUpPort(int bps);
  392. #endif
  393. #ifndef BeNice
  394. void BeNice(int x);
  395. #endif
  396. #ifndef DialExternal
  397. int DialExternal(NetBuffer *netBuf);
  398. #endif
  399. #ifndef ChatEat
  400. char ChatEat(int c)
  401. #endif
  402. #ifndef ChatSend
  403. char ChatSend(int c)
  404. #endif
  405. #ifndef makeBanner
  406. void makeBanner(char *x, char *y, int z);
  407. #endif
  408. /*
  409. * 3.11 File Comments
  410. */
  411. #ifndef StFileComSearch
  412. int StFileComSearch(void);
  413. #endif
  414. #ifndef FindFileComment
  415. int FindFileComment(char *fn);
  416. #endif
  417. #ifndef EndFileComment
  418. void EndFileComment(void);
  419. #endif
  420. /*
  421. * 3.12 deARCing prototypes.
  422. */
  423. #ifndef ArcInit
  424. void ArcInit(void);
  425. #endif
  426. #ifndef SendArcFiles
  427. void SendArcFiles(int protocol);
  428. #endif
  429. #ifndef MakeTempDir
  430. void MakeTempDir(void);
  431. #endif
  432. #ifndef FileIntegrity
  433. char FileIntegrity(char *fileName);
  434. #endif
  435. #ifndef CompAvailable
  436. char CompAvailable(char CompType);
  437. #endif
  438. #ifndef DeCompAvailable
  439. char DeCompAvailable(char CompType);
  440. #endif
  441. #ifndef NetDeCompress
  442. void NetDeCompress(char CompType, SYS_FILE fn);
  443. #endif
  444. #ifndef MakeDeCompressedFilename
  445. void MakeDeCompressedFilename(SYS_FILE fn, char *FileName);
  446. #endif
  447. #ifndef KillNetDeCompress
  448. void KillNetDeCompress(void);
  449. #endif
  450. #ifndef Compress
  451. void Compress(char CompType, char *Files, char *ArcFileName);
  452. #endif
  453. #ifndef CompExtension
  454. char *CompExtension(char CompType);
  455. #endif
  456. #ifndef GetUserCompression
  457. int GetUserCompression(void);
  458. #endif
  459. #ifndef GetCompEnglish
  460. char *GetCompEnglish(char CompType);
  461. #endif
  462. #ifndef AnyCompression
  463. char AnyCompression(void);
  464. #endif
  465. /*
  466. * 3.13 External protocols
  467. */
  468. #ifndef ExternalProtocol
  469. int ExternalProtocol(int protocol, char up, char *name, char *phrase,
  470. char move);
  471. #endif
  472. #ifndef EatExtMessage
  473. int EatExtMessage(int uploading);
  474. #endif
  475. #ifndef FindProtoName
  476. char *FindProtoName(int protocol);
  477. #endif
  478. #ifndef AddExternProtocolOptions
  479. void AddExternProtocolOptions(char **Opts, char upload);
  480. #endif
  481. #ifndef FindProtocolCode
  482. int FindProtocolCode(int c, char upload);
  483. #endif
  484. #ifndef DoesNumerous
  485. char DoesNumerous(int protocol);
  486. #endif
  487. #ifndef UpProtsEnglish
  488. void UpProtsEnglish(char *target);
  489. #endif
  490. #ifndef DownProtsEnglish
  491. void DownProtsEnglish(char *target);
  492. #endif
  493. #ifndef LastOn
  494. char *LastOn(long lastdate, char shortstyle);
  495. #endif
  496. #ifndef ExternalTransfer
  497. char ExternalTransfer(int protocol, char *filename);
  498. #endif
  499. /*
  500. * Menu handling stuff
  501. */
  502. #ifndef RegisterSysopMenu
  503. MenuId RegisterSysopMenu(char *MenuName, char *Opts[], char *MenuTitle);
  504. #endif
  505. #ifndef GetSysopMenuChar
  506. int GetSysopMenuChar(MenuId id);
  507. #endif
  508. #ifndef CloseSysopMenu
  509. void CloseSysopMenu(MenuId id);
  510. #endif
  511. #ifndef SysopMenuPrompt
  512. void SysopMenuPrompt(MenuId id, char *prompt);
  513. #endif
  514. #ifndef SysopError
  515. void SysopError(MenuId id, char *prompt);
  516. #endif
  517. #ifndef SysopGetYesNo
  518. char SysopGetYesNo(MenuId id, char *info, char *prompt);
  519. #endif
  520. #ifndef SysopRequestString
  521. void SysopRequestString(MenuId id, char *prompt, char *buf, int size, int flags);
  522. #endif
  523. #ifndef SysopInfoReport
  524. void SysopInfoReport(MenuId id, char *info);
  525. #endif
  526. #ifndef SysopDisplayInfo
  527. void SysopDisplayInfo(MenuId id, char *info, char *title);
  528. #endif
  529. #ifndef SysopGetNumber
  530. long SysopGetNumber(MenuId id, char *prompt, long bottom, long top);
  531. #endif
  532. #ifndef SysopContinual
  533. MenuId SysopContinual(char *title, char *prompt, int Width, int Depth);
  534. #endif
  535. #ifndef SysopContinualString
  536. void SysopContinualString(MenuId id, char *prompt, char *buf, int size, int flags);
  537. #endif
  538. #ifndef SysopCloseContinual
  539. void SysopCloseContinual(MenuId id);
  540. #endif
  541. #ifndef SysopPrintf
  542. int  SysopPrintf(MenuId id, char *format, ...);
  543. #endif
  544. #ifndef NeedSysopInpPrompt
  545. char NeedSysopInpPrompt(void);
  546. #endif
  547. /*
  548. * Caching functions -- possibly temporary
  549. */
  550. #ifndef NetCacheName
  551. void NetCacheName(char *buf, int slot, char *name);
  552. #endif
  553. #ifndef MakeNetCacheName
  554. void MakeNetCacheName(char *buf, int slot);
  555. #endif
  556. #ifndef MakeNetCache
  557. void MakeNetCache(char *buf);
  558. #endif
  559. /*
  560. * Virtual rooms
  561. */
  562. #ifndef makeVASysName
  563. void makeVASysName(char *x, char *y);
  564. #endif
  565. #ifndef CreateVAName
  566. void CreateVAName(char *fn, int slot, char *dir, long num);
  567. #endif
  568. /*
  569. * These functions are in SysCfg.C.
  570. */
  571. #ifdef CONFIGURE
  572. #ifndef initSysSpec
  573. void initSysSpec(void);
  574. #endif
  575. #ifndef sysArgs
  576. char sysArgs(char *str);
  577. #endif
  578. #ifndef sysSpecs
  579. int sysSpecs(char *line, int offset, char *status, FILE *fd);
  580. #endif
  581. #ifndef SysDepIntegrity
  582. char SysDepIntegrity(int *offset);
  583. #endif
  584. #ifndef FinalSystemCheck
  585. int FinalSystemCheck(char OnlyParams);
  586. #endif
  587. #ifndef FindDoorSlot
  588. int FindDoorSlot(char *str);
  589. #endif
  590. #endif
  591. /*
  592. * These functions are in SysUtil.C.
  593. */
  594. #ifndef getUtilDate
  595. void getUtilDate(int *year, int *month, int *day, int *hours, int *minutes);
  596. #endif
  597. #include "sysprot.h"
  598. #else   /* !Ansiprototyping */
  599. FILE *safeopen();
  600. long CurAbsolute(),
  601. sysRoomLeft(),
  602. chkTimeSince();
  603. AN_UNSIGNED inp();
  604. char *prtNetArea();
  605. #ifdef SYSTEM_DEPENDENT
  606. int  nodie(),
  607. Control_C(),
  608. video(),
  609. statusline(),
  610. Zvideo(),
  611. Zsline(),
  612. Zreset_video(),
  613. AddName();
  614. char *gcdir(),
  615. AN_UNSIGNED interpret();
  616. long milliTimeSince(),
  617. timeSince(),
  618. dostounix();
  619. #ifdef CONFIGURE
  620. char *getcwd();
  621. #endif
  622. #endif
  623. #endif
  624.